package com.syh.jn.scm.infrastructure.repository.model.base.logistics;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 物流提供的货车
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_LOGISTICS_TRUCK")
@EqualsAndHashCode(callSuper = true)
public class LogisticsTruckModel extends SuperBusinessModel {
  /**
   * 物流公司id
   */
  @Column(name = "LOGISTICS_ID", columnDefinition = "bigint COMMENT '物流公司id'")
  private Long logisticsId;
  /**
   * 货车类型: 1小型货车,2中型货车,3大型货车
   */
  @Column(name = "TRUCK_TYPE", columnDefinition = "smallint COMMENT '货车类型: 1小型货车,2中型货车,3大型货车'")
  private Short truckType;
  /**
   * 起步价(元)
   */
  @Column(name = "STARTING_PRICE", columnDefinition = "decimal(19,2) COMMENT '起步价(元)'")
  private BigDecimal startingPrice;
  /**
   * 每公里价格
   */
  @Column(name = "PER_KILOMETRE_PRICE", columnDefinition = "decimal(19,2) COMMENT '每公里价格(元)'")
  private BigDecimal perKilometrePrice;
  /**
   * 是否冷链车:-1否,1是
   */
  @Column(name = "IS_COLD_CHAIN", columnDefinition = "smallint COMMENT '是否冷链车:-1否,1是'")
  private Short isColdChain;
}
